/*
(c) 2010 - Open Source Business Foundation e. V. (www.osbf.de)
This software is provided under Microsoft Reciprocal License (Ms-RL)
(http://www.microsoft.com/opensource/licenses.mspx#Ms-RL)
All other rights reserved
*/

var LoginDialog = {
  
  onLoad: function() {
    if ("arguments" in window && window.arguments.length > 0) {
      this.mfDialog = window.arguments[0];
    }
  },

  onButtonOk: function() {
    if (this.mfDialog) {
      var mfUser = document.getElementById("user").value;
      var mfPassword = document.getElementById("password").value;
      this.mfDialog.onLogin(mfUser, mfPassword);
      window.close();
    }
  },
  
  onButtonCancel: function() {
    window.close();
  }
  
}
